package com.kanshu.ksgb.fastread.doudou.module.message.retrofit;

import com.kanshu.ksgb.fastread.doudou.common.net.bean.BaseResult;
import com.kanshu.ksgb.fastread.doudou.common.business.commonbean.MessageBean;

import java.util.List;
import java.util.Map;

import io.reactivex.Observable;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.QueryMap;

/**
 * Created by daniel on 18-3-9.
 */

public interface MessageApi {
    @GET("yd/jpushmessageconfig/getsendmsglist")
    Observable<BaseResult<List<MessageBean>>> getUnreadMessage(@QueryMap Map<String, String> map);
    // 统计自定义通知栏点击次数
    @FormUrlEncoded
    @POST("/yd/jpushmessage/click")
    Call<ResponseBody> countMessage(@FieldMap Map<String, String> map);
}
